Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Finder Guide /
Chapter 2 - Finder Objects / Object Class Definitions


Information Window

An object of class Information Window is the window that opens when you select an item and choose Get Info from the File menu.

PROPERTIES
An information window has all the properties defined for object class Window on page 93: Bounds, Closeable, Floating, Index, Modal, Position, Resizable, Titled, Visible, Zoomable, and Zoomed.

Unlike other windows, an information window also has these properties:

comment
The comment displayed in the information window.
Class: String
Modifiable: Yes
creation date
The date on which the item to which the information window belongs was created.
Class: Date
Modifiable: No
icon
A bitmap of the icon for the item to which the information window belongs.
Class: Icon family (data type defined by Finder)
Modifiable: Yes
item
A reference to the item to which the information window belongs.
Class: Reference
Modifiable: No
locked
A Boolean value that indicates whether the file to which the information window belongs is locked (true) or not (false).
Class:
Boolean
Modifiable: Yes
minimum partition size
An integer indicating the minimum amount of memory, in bytes, that an application requires to run (available only for information windows that belong to application files). This value is equivalent to the value in the box labeled "Minimum size" under "Memory Requirements" in the information window (see "Notes").
Class: Integer
Modifiable: Yes
modification date
The date on which the item to which the information window belongs was most recently modified.
Class: Date
Modifiable: No
partition size
An integer indicating the amount of memory, in bytes, that
an application is launched with if a block of this size is free (available only for information windows that belong to application files). This value is equivalent to the value in the box labeled "Preferred size" under "Memory Requirements" in the information window (see "Notes").
Class: Integer
Modifiable: Yes
physical size
The physical size of the item on disk, in bytes.
Class:
Integer
Modifiable: No
product version
The version number shown at the top of the information window.
Class: String
Modifiable: No
size
The logical size of the item on disk, in bytes.
Class: Integer
Modifiable: No
stationery
A Boolean value that indicates whether a document file is
a stationery pad (true) or not (false) (available only for information windows that belong to document files.)
Class: Boolean
Modifiable: Yes
suggested partition size
An integer indicating the amount of memory, in bytes, suggested for running an application (available only for information windows that belong to application files). This value is equivalent to the value in the box labeled "Suggested size" under "Memory Requirements" in the information window
(see "Notes").
Class: Integer
Modifiable: No
version
The version number shown near the middle of the information window.
Class: String
Modifiable: No
warn before emptying
A Boolean value that indicates whether the Finder should warn the user before emptying the Trash (true) or not (false) (available only for the Trash).
Class: String
Modifiable: Yes
ELEMENT CLASSES
None

COMMANDS HANDLED
Close, Count, Data Size, Exists, Get, Open, Sort

DEFAULT VALUE CLASS RETURNED
A reference to an information window or, if you use the plural form information windows, a list of references.

EXAMPLE
This script opens the information windows for all application files in a disk whose partition sizes are greater than 1000K:

tell application "Finder"   open (information window of application files of ¬
      disk "Applications" whose partition size > 1024000)
end tell
NOTES
The Minimum Partition Size, Partition Size, and Suggested Partition Size are all given in bytes. These values are shown in information windows in kilobytes (K, where 1K = 1024 bytes). For more information about the relationships among these properties, which are identical to the properties of the same name defined for class Application File, see page 40.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996